package com.zzyl.mapper;


import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    public List<NursingLevelVo> listAll();


    void insert(NursingLevel bean);


    Page<NursingLevelVo> listByPage(String name, Integer status);


    NursingLevelVo getById(Integer id);

    void update(NursingLevel bean);

    @Delete("delete from nursing_level where id = #{id}")
    void deleteById(Integer id);
}
